package cat.service.impl;

import cat.entity.User;
import cat.mapper.UserMapper;
import cat.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class UserServiceImpl implements UserService {

    @Resource  //还有这个注解
    private UserMapper userMapper;

    public User getUserByNameOrEmail(String s) {
        return userMapper.getUserByNameOrEmail(s);
    }
}
